class Code7 {
    public static void main(String[] args){
        public int reverse(int x) {
            int b=0;
            int c = 1;
        for(int i=0 ;i<33;i++){
            c=c*10;
            b=b+x%c-b;
        }
        return b;
}
    }
    reverse(122);
}

